package com.cloudfun.campusshare.common.model.dto;

import com.cloudfun.campusshare.common.constant.CouponType;
import com.cloudfun.campusshare.common.constant.UserCouponStatus;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * Created by Huqin on 2020/6/6
 */
@Data
@ApiModel("用户优惠券搜索DTO")
public class UserCouponSearchDTO {

    @ApiModelProperty("代金券类型")
    private List<CouponType> types;

    @ApiModelProperty("代金券状态")
    private List<UserCouponStatus> status;

    @ApiModelProperty("创建时间开始（yyyy-MM-dd HH:mm:ss）")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTimeStart;

    @ApiModelProperty("创建时间结束（yyyy-MM-dd HH:mm:ss）")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTimeEnd;

    @ApiModelProperty("模糊搜索关键字")
    private String keyword;

    @ApiModelProperty("商户id")
    private String merchantId;

    @ApiModelProperty("客户id")
    private String userId;

    @ApiModelProperty("洗衣点id")
    private String washPointId;
}
